package com.ruyuan2020.im.design.observerdesignpattern;

// 具体观察者类
public class ConcreteObserver implements Observer {
    private String observerState;

    @Override
    public void update(String state) {
        // 更新观察者的状态
        this.observerState = state;
        System.out.println("ConcreteObserver's state updated to: " + state);
    }
}
